home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_01_05
/
1n05043a
< prev
next >
Wrap
Text File
|
1990-08-24
|
2KB
|
55 lines
Figure 4.
#include <windows.h>
#include "listbox.h"
STRINGTABLE
BEGIN
ID_ACCOUNT , "023931"
ID_ACCOUNT + 1, "578393"
ID_ACCOUNT + 2, "212209"
ID_ACCOUNT + 3, "895321"
ID_ACCOUNT + 4, "995000"
ID_NAME , "Acme Financial Consultants"
ID_NAME + 1 , "Arabian Importers, Inc"
ID_NAME + 2 , "Joes' Plumbing"
ID_NAME + 3 , "Fast Video Rentals"
ID_NAME + 4 , "Howard, Howard, & Howard"
END
MAINMENU MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&Customer" IDM_CUSTMAINT
MENUITEM "E&xit" IDM_EXIT
END
END
CUSTOMERMAINTENANCE DIALOG LOADONCALL MOVEABLE DISCARDABLE 3, 13, 205, 100
CAPTION "Customer Maintenance"
STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME | WS_POPUP
BEGIN
CONTROL "Acct", -1, "static", SS_LEFT | WS_CHILD, 3, 14, 16, 8
CONTROL "Name", -1, "static", SS_LEFT | WS_CHILD, 26, 14, 23, 8
CONTROL "", ID_LISTBOX, "listbox", LBS_STANDARD | WS_BORDER | WS_VSCROLL | WS_TABSTOP | WS_CHILD, 2, 25, 161, 73
CONTROL "&Delete",ID_DELETE, "button", BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 166, 69, 37, 14
CONTROL "&Edit", ID_EDIT, "button", BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 166, 54, 37, 14
CONTROL "&Add", ID_ADD, "button", BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 166, 39, 37, 14
CONTROL "&OK", ID_OK, "button", BS_DEFPUSHBUTTON | WS_TABSTOP | WS_CHILD, 166, 84, 37, 14
END
CUSTOMEREDIT DIALOG LOADONCALL MOVEABLE DISCARDABLE 3, 13, 205, 74
CAPTION "Customer Add/Edit"
STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME | WS_POPUP
BEGIN
CONTROL "Account Nr", -1, "static", SS_LEFT | WS_CHILD, 3, 5, 38, 8
CONTROL "", ID_ACCOUNT, "edit", ES_LEFT | WS_BORDER | WS_TABSTOP | WS_CHILD, 44, 3, 32, 12
CONTROL "Name", -1, "static", SS_LEFT | WS_CHILD, 3, 23, 22, 8
CONTROL "", ID_NAME, "edit", ES_LEFT | WS_BORDER | WS_TABSTOP | WS_CHILD, 44, 21, 136, 12
CONTROL "&OK", ID_OK, "button", BS_DEFPUSHBUTTON | WS_TABSTOP | WS_CHILD, 60, 53, 37, 14
CONTROL "&Cancel",ID_CANCEL, "button", BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 102, 53, 37, 14
END